/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.genipapoconstrucoes.gui;

/**
 *
 * @author César
 */
public class FrmCadastroContas extends javax.swing.JFrame {

    /**
     * Creates new form FrmCadastroContas
     */
    public FrmCadastroContas() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        pnlContasPagarPrin = new javax.swing.JPanel();
        pnlContasPagar = new javax.swing.JPanel();
        pnlBotoesContasPagar = new javax.swing.JPanel();
        btnInicioCP = new javax.swing.JButton();
        btnAnteriorCP = new javax.swing.JButton();
        btnNovoCP = new javax.swing.JButton();
        btnSalvarCP = new javax.swing.JButton();
        btnAlterarCP = new javax.swing.JButton();
        btnCancelarCP = new javax.swing.JButton();
        btnExcluirCP = new javax.swing.JButton();
        btnProximoCP = new javax.swing.JButton();
        btnUltimoCP = new javax.swing.JButton();
        pnlAPagar = new javax.swing.JPanel();
        lblCodigo = new javax.swing.JLabel();
        lblNomeFornecedor = new javax.swing.JLabel();
        txtNomeFornecedor = new javax.swing.JTextField();
        txtCodigo = new javax.swing.JFormattedTextField();
        btnProcurar = new javax.swing.JButton();
        lblTipoDocumento = new javax.swing.JLabel();
        cmbTipoDocumento = new javax.swing.JComboBox();
        lblNumeroDocumento = new javax.swing.JLabel();
        lblParcela = new javax.swing.JLabel();
        txtNumeroDocumento = new javax.swing.JFormattedTextField();
        txtParcela = new javax.swing.JFormattedTextField();
        txtData = new javax.swing.JFormattedTextField();
        lblDataContasPagar = new javax.swing.JLabel();
        lblVencimento = new javax.swing.JLabel();
        txtVencimento = new javax.swing.JFormattedTextField();
        lblValorPagamento = new javax.swing.JLabel();
        txtValorPagamento = new javax.swing.JFormattedTextField();
        lblReferente = new javax.swing.JLabel();
        txtReferente = new javax.swing.JTextField();
        pnlDadosPagamento = new javax.swing.JPanel();
        lblDataPagamento = new javax.swing.JLabel();
        lblMultaJuros = new javax.swing.JLabel();
        txtDataPagamento = new javax.swing.JFormattedTextField();
        txtMultaJuros = new javax.swing.JFormattedTextField();
        lblFormaPagamento = new javax.swing.JLabel();
        cmbFormaPagamento = new javax.swing.JComboBox();
        lblDesconto = new javax.swing.JLabel();
        txtDesconto = new javax.swing.JFormattedTextField();
        lblNomeBanco = new javax.swing.JLabel();
        txtNomeBanco = new javax.swing.JTextField();
        lblValorPago = new javax.swing.JLabel();
        txtValorPag = new javax.swing.JFormattedTextField();
        pnlContasReceberPrin = new javax.swing.JPanel();
        pnlContasReceber = new javax.swing.JPanel();
        pnlBotoesConatasReceber = new javax.swing.JPanel();
        btnPrimeiroCR = new javax.swing.JButton();
        btnAnteriorCR = new javax.swing.JButton();
        btnNovoCR = new javax.swing.JButton();
        btnSalvarCR = new javax.swing.JButton();
        btnAlterarCR = new javax.swing.JButton();
        btnCancelarCR = new javax.swing.JButton();
        btnExcluirCR = new javax.swing.JButton();
        btnProximoCR = new javax.swing.JButton();
        btnUltimoCR = new javax.swing.JButton();
        pnlAReceber = new javax.swing.JPanel();
        jSeparator2 = new javax.swing.JSeparator();
        lblLancamento = new javax.swing.JLabel();
        cmbLancamento = new javax.swing.JComboBox();
        lblDataContasReceber = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        lblHistorioco = new javax.swing.JLabel();
        txtHistorioco = new javax.swing.JTextField();
        lblFechamento = new javax.swing.JLabel();
        cmbFechamento = new javax.swing.JComboBox();
        pnlSaldo = new javax.swing.JPanel();
        txtSaltoContasReceber = new javax.swing.JFormattedTextField();
        cmbCliente = new javax.swing.JComboBox();
        pnlTipoLacamento = new javax.swing.JPanel();
        chbTipoLancamentoCredito = new javax.swing.JCheckBox();
        chbTipoLancamentoDebito = new javax.swing.JCheckBox();
        chbTipoLancamentoEntornoCredito = new javax.swing.JCheckBox();
        chbTipoLancamentoEntornoDebito = new javax.swing.JCheckBox();
        chbTipoLancamentoPagamentoAntecipado = new javax.swing.JCheckBox();
        chbTipoLancamentoDesconto = new javax.swing.JCheckBox();
        lblTotal = new javax.swing.JLabel();
        txtTotal = new javax.swing.JFormattedTextField();
        txtDataContasReceber = new javax.swing.JFormattedTextField();
        txtIdCliente = new javax.swing.JFormattedTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Cadastro Conta Pagar/Receber");

        pnlContasPagar.setBorder(javax.swing.BorderFactory.createTitledBorder("A Pagar ! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ."));

        pnlBotoesContasPagar.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        btnInicioCP.setText("|<");
        btnInicioCP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnInicioCPActionPerformed(evt);
            }
        });

        btnAnteriorCP.setText("<");

        btnNovoCP.setText("Novo");

        btnSalvarCP.setText("Salvar");

        btnAlterarCP.setText("Alterar");

        btnCancelarCP.setText("Cancelar");

        btnExcluirCP.setText("Excluir");

        btnProximoCP.setText(">");

        btnUltimoCP.setText(">|");

        javax.swing.GroupLayout pnlBotoesContasPagarLayout = new javax.swing.GroupLayout(pnlBotoesContasPagar);
        pnlBotoesContasPagar.setLayout(pnlBotoesContasPagarLayout);
        pnlBotoesContasPagarLayout.setHorizontalGroup(
            pnlBotoesContasPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBotoesContasPagarLayout.createSequentialGroup()
                .addGap(5, 5, 5)
                .addComponent(btnInicioCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnAnteriorCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnNovoCP)
                .addGap(18, 18, 18)
                .addComponent(btnSalvarCP)
                .addGap(18, 18, 18)
                .addComponent(btnAlterarCP)
                .addGap(18, 18, 18)
                .addComponent(btnCancelarCP)
                .addGap(18, 18, 18)
                .addComponent(btnExcluirCP)
                .addGap(18, 18, 18)
                .addComponent(btnProximoCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnUltimoCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(5, 5, 5))
        );
        pnlBotoesContasPagarLayout.setVerticalGroup(
            pnlBotoesContasPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBotoesContasPagarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlBotoesContasPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnInicioCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAnteriorCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnNovoCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSalvarCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAlterarCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCancelarCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExcluirCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnProximoCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnUltimoCP, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pnlAPagar.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        lblCodigo.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblCodigo.setText("Código:");

        lblNomeFornecedor.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblNomeFornecedor.setText("Nome Fornecedor:");

        btnProcurar.setText(":p");
        btnProcurar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProcurarActionPerformed(evt);
            }
        });

        lblTipoDocumento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblTipoDocumento.setText("Tipo de Documento:");

        cmbTipoDocumento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Fatura" }));

        lblNumeroDocumento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblNumeroDocumento.setText("Número Documento:");

        lblParcela.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblParcela.setText("Parcela:");

        lblDataContasPagar.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblDataContasPagar.setText("Data:");

        lblVencimento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblVencimento.setText("Vecimento:");

        lblValorPagamento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblValorPagamento.setText("Valor da Parcela");

        lblReferente.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblReferente.setText("Referente a:");

        pnlDadosPagamento.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados de Pagamento .................................................................................................................................................................................................................................."));

        lblDataPagamento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblDataPagamento.setText("Data de Pagamento:");

        lblMultaJuros.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblMultaJuros.setText("Multa/Juros:");

        lblFormaPagamento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblFormaPagamento.setText("Forma de Pagamento:");

        cmbFormaPagamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        lblDesconto.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblDesconto.setText("Desconto:");

        lblNomeBanco.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblNomeBanco.setText("Nome do Banco:");

        lblValorPago.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblValorPago.setText("Valor Pago:");

        javax.swing.GroupLayout pnlDadosPagamentoLayout = new javax.swing.GroupLayout(pnlDadosPagamento);
        pnlDadosPagamento.setLayout(pnlDadosPagamentoLayout);
        pnlDadosPagamentoLayout.setHorizontalGroup(
            pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosPagamentoLayout.createSequentialGroup()
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlDadosPagamentoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(txtDataPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlDadosPagamentoLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblDataPagamento)
                            .addComponent(lblMultaJuros)
                            .addGroup(pnlDadosPagamentoLayout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(txtMultaJuros, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addGap(42, 42, 42)
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblFormaPagamento)
                    .addGroup(pnlDadosPagamentoLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cmbFormaPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtDesconto, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(lblDesconto))
                .addGap(48, 48, 48)
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblValorPago)
                    .addComponent(lblNomeBanco)
                    .addGroup(pnlDadosPagamentoLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtNomeBanco, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtValorPag, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlDadosPagamentoLayout.setVerticalGroup(
            pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosPagamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDataPagamento)
                    .addComponent(lblFormaPagamento)
                    .addComponent(lblNomeBanco))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtDataPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbFormaPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNomeBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblMultaJuros)
                    .addComponent(lblDesconto)
                    .addComponent(lblValorPago))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addGroup(pnlDadosPagamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtMultaJuros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtDesconto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtValorPag, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        javax.swing.GroupLayout pnlAPagarLayout = new javax.swing.GroupLayout(pnlAPagar);
        pnlAPagar.setLayout(pnlAPagarLayout);
        pnlAPagarLayout.setHorizontalGroup(
            pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAPagarLayout.createSequentialGroup()
                .addGap(98, 98, 98)
                .addComponent(pnlDadosPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(98, 98, 98))
            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlAPagarLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(pnlAPagarLayout.createSequentialGroup()
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(lblCodigo)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(53, 53, 53)
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(lblNomeFornecedor)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtNomeFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, 488, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(20, 20, 20)
                                    .addComponent(btnProcurar, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addComponent(lblReferente)
                        .addGroup(pnlAPagarLayout.createSequentialGroup()
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(lblTipoDocumento)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(cmbTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(30, 30, 30)
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtNumeroDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(lblNumeroDocumento))
                            .addGap(30, 30, 30)
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(lblParcela)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtParcela, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(30, 30, 30)
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(lblDataContasPagar)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtData, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(30, 30, 30)
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(lblVencimento)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtVencimento, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGap(30, 30, 30)
                            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(pnlAPagarLayout.createSequentialGroup()
                                    .addGap(10, 10, 10)
                                    .addComponent(txtValorPagamento))
                                .addComponent(lblValorPagamento)))
                        .addGroup(pnlAPagarLayout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(txtReferente, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        pnlAPagarLayout.setVerticalGroup(
            pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlAPagarLayout.createSequentialGroup()
                .addContainerGap(201, Short.MAX_VALUE)
                .addComponent(pnlDadosPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pnlAPagarLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblCodigo)
                        .addComponent(lblNomeFornecedor))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(txtCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtNomeFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnProcurar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblTipoDocumento)
                        .addComponent(lblNumeroDocumento)
                        .addComponent(lblParcela)
                        .addComponent(lblDataContasPagar)
                        .addComponent(lblVencimento)
                        .addComponent(lblValorPagamento))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(pnlAPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cmbTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtNumeroDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtParcela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtVencimento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtValorPagamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addComponent(lblReferente)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(txtReferente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(152, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout pnlContasPagarLayout = new javax.swing.GroupLayout(pnlContasPagar);
        pnlContasPagar.setLayout(pnlContasPagarLayout);
        pnlContasPagarLayout.setHorizontalGroup(
            pnlContasPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasPagarLayout.createSequentialGroup()
                .addGroup(pnlContasPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlContasPagarLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(pnlBotoesContasPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlContasPagarLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(pnlAPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(22, 22, 22))
        );
        pnlContasPagarLayout.setVerticalGroup(
            pnlContasPagarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasPagarLayout.createSequentialGroup()
                .addComponent(pnlAPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(pnlBotoesContasPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(37, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout pnlContasPagarPrinLayout = new javax.swing.GroupLayout(pnlContasPagarPrin);
        pnlContasPagarPrin.setLayout(pnlContasPagarPrinLayout);
        pnlContasPagarPrinLayout.setHorizontalGroup(
            pnlContasPagarPrinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasPagarPrinLayout.createSequentialGroup()
                .addComponent(pnlContasPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 26, Short.MAX_VALUE))
        );
        pnlContasPagarPrinLayout.setVerticalGroup(
            pnlContasPagarPrinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasPagarPrinLayout.createSequentialGroup()
                .addComponent(pnlContasPagar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(5, 5, 5))
        );

        jTabbedPane1.addTab("Cadastro de Contas a Pagar", pnlContasPagarPrin);

        pnlContasReceber.setBorder(javax.swing.BorderFactory.createTitledBorder("A Receber ! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ."));

        pnlBotoesConatasReceber.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        btnPrimeiroCR.setText("|<");
        btnPrimeiroCR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnPrimeiroCRActionPerformed(evt);
            }
        });

        btnAnteriorCR.setText("<");

        btnNovoCR.setText("Novo");

        btnSalvarCR.setText("Salvar");

        btnAlterarCR.setText("Alterar");

        btnCancelarCR.setText("Cancelar");

        btnExcluirCR.setText("Excluir");

        btnProximoCR.setText(">");

        btnUltimoCR.setText(">|");

        javax.swing.GroupLayout pnlBotoesConatasReceberLayout = new javax.swing.GroupLayout(pnlBotoesConatasReceber);
        pnlBotoesConatasReceber.setLayout(pnlBotoesConatasReceberLayout);
        pnlBotoesConatasReceberLayout.setHorizontalGroup(
            pnlBotoesConatasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBotoesConatasReceberLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(btnPrimeiroCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnAnteriorCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnNovoCR)
                .addGap(18, 18, 18)
                .addComponent(btnSalvarCR)
                .addGap(18, 18, 18)
                .addComponent(btnAlterarCR)
                .addGap(18, 18, 18)
                .addComponent(btnCancelarCR)
                .addGap(18, 18, 18)
                .addComponent(btnExcluirCR)
                .addGap(18, 18, 18)
                .addComponent(btnProximoCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnUltimoCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(5, 5, 5))
        );
        pnlBotoesConatasReceberLayout.setVerticalGroup(
            pnlBotoesConatasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlBotoesConatasReceberLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlBotoesConatasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnPrimeiroCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAnteriorCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnNovoCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnSalvarCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAlterarCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCancelarCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExcluirCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnProximoCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnUltimoCR, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        pnlAReceber.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        lblLancamento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblLancamento.setText("Lançamento:");

        cmbLancamento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Serviços" }));

        lblDataContasReceber.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblDataContasReceber.setText("Data:");

        jLabel9.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        jLabel9.setText("Cliente:");

        lblHistorioco.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblHistorioco.setText("Histórico:");

        lblFechamento.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblFechamento.setText("Fechamento:");

        pnlSaldo.setBorder(javax.swing.BorderFactory.createTitledBorder("Saldo"));

        javax.swing.GroupLayout pnlSaldoLayout = new javax.swing.GroupLayout(pnlSaldo);
        pnlSaldo.setLayout(pnlSaldoLayout);
        pnlSaldoLayout.setHorizontalGroup(
            pnlSaldoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlSaldoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtSaltoContasReceber, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlSaldoLayout.setVerticalGroup(
            pnlSaldoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlSaldoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtSaltoContasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlTipoLacamento.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo do Lançamento"));

        chbTipoLancamentoCredito.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        chbTipoLancamentoCredito.setText("Crédito");

        chbTipoLancamentoDebito.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        chbTipoLancamentoDebito.setText("Débito");

        chbTipoLancamentoEntornoCredito.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        chbTipoLancamentoEntornoCredito.setText("Entorno Crédito");

        chbTipoLancamentoEntornoDebito.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        chbTipoLancamentoEntornoDebito.setText("Entorno Débito");

        chbTipoLancamentoPagamentoAntecipado.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        chbTipoLancamentoPagamentoAntecipado.setText("Pagamento Antecipado");

        chbTipoLancamentoDesconto.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        chbTipoLancamentoDesconto.setText("Desconto");

        javax.swing.GroupLayout pnlTipoLacamentoLayout = new javax.swing.GroupLayout(pnlTipoLacamento);
        pnlTipoLacamento.setLayout(pnlTipoLacamentoLayout);
        pnlTipoLacamentoLayout.setHorizontalGroup(
            pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTipoLacamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chbTipoLancamentoCredito)
                    .addComponent(chbTipoLancamentoDebito))
                .addGap(145, 145, 145)
                .addGroup(pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chbTipoLancamentoEntornoDebito)
                    .addComponent(chbTipoLancamentoEntornoCredito))
                .addGap(145, 145, 145)
                .addGroup(pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chbTipoLancamentoDesconto)
                    .addComponent(chbTipoLancamentoPagamentoAntecipado))
                .addGap(15, 15, 15))
        );
        pnlTipoLacamentoLayout.setVerticalGroup(
            pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTipoLacamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chbTipoLancamentoCredito)
                    .addComponent(chbTipoLancamentoEntornoCredito)
                    .addComponent(chbTipoLancamentoPagamentoAntecipado))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
                .addGroup(pnlTipoLacamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(chbTipoLancamentoDebito)
                    .addComponent(chbTipoLancamentoEntornoDebito)
                    .addComponent(chbTipoLancamentoDesconto))
                .addContainerGap())
        );

        lblTotal.setFont(new java.awt.Font("Arial", 2, 13)); // NOI18N
        lblTotal.setText("Total:");

        javax.swing.GroupLayout pnlAReceberLayout = new javax.swing.GroupLayout(pnlAReceber);
        pnlAReceber.setLayout(pnlAReceberLayout);
        pnlAReceberLayout.setHorizontalGroup(
            pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAReceberLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator2)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlAReceberLayout.createSequentialGroup()
                        .addComponent(lblLancamento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cmbLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(14, 14, 14))
                    .addGroup(pnlAReceberLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(pnlTipoLacamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(pnlAReceberLayout.createSequentialGroup()
                                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(pnlAReceberLayout.createSequentialGroup()
                                        .addComponent(lblHistorioco)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtHistorioco, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(pnlAReceberLayout.createSequentialGroup()
                                        .addComponent(lblDataContasReceber)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtDataContasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(52, 52, 52)
                                        .addComponent(jLabel9)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(txtIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addGap(8, 8, 8)
                                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(pnlAReceberLayout.createSequentialGroup()
                                        .addComponent(lblFechamento)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(cmbFechamento, 0, 200, Short.MAX_VALUE)
                                        .addGap(18, 18, 18)
                                        .addComponent(pnlSaldo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(cmbCliente, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
                .addContainerGap())
            .addGroup(pnlAReceberLayout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(lblTotal)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlAReceberLayout.setVerticalGroup(
            pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAReceberLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblLancamento)
                    .addComponent(cmbLancamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pnlAReceberLayout.createSequentialGroup()
                        .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblDataContasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9)
                            .addComponent(txtDataContasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(cmbCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlAReceberLayout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblHistorioco)
                            .addComponent(txtHistorioco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblFechamento)
                            .addComponent(cmbFechamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(36, 36, 36))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlAReceberLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pnlSaldo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
                .addComponent(pnlTipoLacamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(pnlAReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblTotal)
                    .addComponent(txtTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlContasReceberLayout = new javax.swing.GroupLayout(pnlContasReceber);
        pnlContasReceber.setLayout(pnlContasReceberLayout);
        pnlContasReceberLayout.setHorizontalGroup(
            pnlContasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasReceberLayout.createSequentialGroup()
                .addGroup(pnlContasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlContasReceberLayout.createSequentialGroup()
                        .addGap(40, 40, 40)
                        .addComponent(pnlBotoesConatasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlContasReceberLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(pnlAReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        pnlContasReceberLayout.setVerticalGroup(
            pnlContasReceberLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlContasReceberLayout.createSequentialGroup()
                .addGap(1, 1, 1)
                .addComponent(pnlAReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(pnlBotoesConatasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20))
        );

        javax.swing.GroupLayout pnlContasReceberPrinLayout = new javax.swing.GroupLayout(pnlContasReceberPrin);
        pnlContasReceberPrin.setLayout(pnlContasReceberPrinLayout);
        pnlContasReceberPrinLayout.setHorizontalGroup(
            pnlContasReceberPrinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasReceberPrinLayout.createSequentialGroup()
                .addComponent(pnlContasReceber, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlContasReceberPrinLayout.setVerticalGroup(
            pnlContasReceberPrinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlContasReceberPrinLayout.createSequentialGroup()
                .addComponent(pnlContasReceber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(88, Short.MAX_VALUE))
        );

        pnlContasReceber.getAccessibleContext().setAccessibleName(". . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . .");

        jTabbedPane1.addTab("Cadastro de Contas a Receber", pnlContasReceberPrin);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 553, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnPrimeiroCRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrimeiroCRActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnPrimeiroCRActionPerformed

    private void btnProcurarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProcurarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnProcurarActionPerformed

    private void btnInicioCPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInicioCPActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnInicioCPActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroContas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroContas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroContas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmCadastroContas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmCadastroContas().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAlterarCP;
    private javax.swing.JButton btnAlterarCR;
    private javax.swing.JButton btnAnteriorCP;
    private javax.swing.JButton btnAnteriorCR;
    private javax.swing.JButton btnCancelarCP;
    private javax.swing.JButton btnCancelarCR;
    private javax.swing.JButton btnExcluirCP;
    private javax.swing.JButton btnExcluirCR;
    private javax.swing.JButton btnInicioCP;
    private javax.swing.JButton btnNovoCP;
    private javax.swing.JButton btnNovoCR;
    private javax.swing.JButton btnPrimeiroCR;
    private javax.swing.JButton btnProcurar;
    private javax.swing.JButton btnProximoCP;
    private javax.swing.JButton btnProximoCR;
    private javax.swing.JButton btnSalvarCP;
    private javax.swing.JButton btnSalvarCR;
    private javax.swing.JButton btnUltimoCP;
    private javax.swing.JButton btnUltimoCR;
    private javax.swing.JCheckBox chbTipoLancamentoCredito;
    private javax.swing.JCheckBox chbTipoLancamentoDebito;
    private javax.swing.JCheckBox chbTipoLancamentoDesconto;
    private javax.swing.JCheckBox chbTipoLancamentoEntornoCredito;
    private javax.swing.JCheckBox chbTipoLancamentoEntornoDebito;
    private javax.swing.JCheckBox chbTipoLancamentoPagamentoAntecipado;
    private javax.swing.JComboBox cmbCliente;
    private javax.swing.JComboBox cmbFechamento;
    private javax.swing.JComboBox cmbFormaPagamento;
    private javax.swing.JComboBox cmbLancamento;
    private javax.swing.JComboBox cmbTipoDocumento;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblCodigo;
    private javax.swing.JLabel lblDataContasPagar;
    private javax.swing.JLabel lblDataContasReceber;
    private javax.swing.JLabel lblDataPagamento;
    private javax.swing.JLabel lblDesconto;
    private javax.swing.JLabel lblFechamento;
    private javax.swing.JLabel lblFormaPagamento;
    private javax.swing.JLabel lblHistorioco;
    private javax.swing.JLabel lblLancamento;
    private javax.swing.JLabel lblMultaJuros;
    private javax.swing.JLabel lblNomeBanco;
    private javax.swing.JLabel lblNomeFornecedor;
    private javax.swing.JLabel lblNumeroDocumento;
    private javax.swing.JLabel lblParcela;
    private javax.swing.JLabel lblReferente;
    private javax.swing.JLabel lblTipoDocumento;
    private javax.swing.JLabel lblTotal;
    private javax.swing.JLabel lblValorPagamento;
    private javax.swing.JLabel lblValorPago;
    private javax.swing.JLabel lblVencimento;
    private javax.swing.JPanel pnlAPagar;
    private javax.swing.JPanel pnlAReceber;
    private javax.swing.JPanel pnlBotoesConatasReceber;
    private javax.swing.JPanel pnlBotoesContasPagar;
    private javax.swing.JPanel pnlContasPagar;
    private javax.swing.JPanel pnlContasPagarPrin;
    private javax.swing.JPanel pnlContasReceber;
    private javax.swing.JPanel pnlContasReceberPrin;
    private javax.swing.JPanel pnlDadosPagamento;
    private javax.swing.JPanel pnlSaldo;
    private javax.swing.JPanel pnlTipoLacamento;
    private javax.swing.JFormattedTextField txtCodigo;
    private javax.swing.JFormattedTextField txtData;
    private javax.swing.JFormattedTextField txtDataContasReceber;
    private javax.swing.JFormattedTextField txtDataPagamento;
    private javax.swing.JFormattedTextField txtDesconto;
    private javax.swing.JTextField txtHistorioco;
    private javax.swing.JFormattedTextField txtIdCliente;
    private javax.swing.JFormattedTextField txtMultaJuros;
    private javax.swing.JTextField txtNomeBanco;
    private javax.swing.JTextField txtNomeFornecedor;
    private javax.swing.JFormattedTextField txtNumeroDocumento;
    private javax.swing.JFormattedTextField txtParcela;
    private javax.swing.JTextField txtReferente;
    private javax.swing.JFormattedTextField txtSaltoContasReceber;
    private javax.swing.JFormattedTextField txtTotal;
    private javax.swing.JFormattedTextField txtValorPag;
    private javax.swing.JFormattedTextField txtValorPagamento;
    private javax.swing.JFormattedTextField txtVencimento;
    // End of variables declaration//GEN-END:variables
}
